package com.bestcem.xm.member.service;

import com.bestcem.xm.common.core.domain.web.ServiceResult;
import com.bestcem.xm.member.entity.pojo.MemberDO;
import com.bestcem.xm.member.grpc.service.param.ListSourceCardsParam;
import com.bestcem.xm.member.mq.message.SourceCardMessage;
import com.bestcem.xm.member.service.dto.PageDTO;
import com.bestcem.xm.member.service.dto.SourceCardDTO;

/**
 * @author ming.xue <ming.xue@idiaoyan.com>
 * @desc 来源名片服务
 * @date 2021-08-02
 */
public interface SourceCardService {
    /**
     * 获取来源名片列表
     *
     * @param param
     * @return
     */
    ServiceResult<PageDTO<SourceCardDTO>> listSourceCards(ListSourceCardsParam param);

    /**
     * 推送联系人名片
     *
     * @param newMember
     */
    void publishSourceCard(MemberDO newMember, Integer type);

    /**
     * 处理联系人名片
     *
     * @param message
     */
    void handleSourceCard(SourceCardMessage message);
}
